package com.chenjun.core.service.sys;

import java.util.List;

import com.chenjun.common.bean.Pagination;
import com.chenjun.common.model.DataGridModel;
import com.chenjun.core.dao.generator.entity.SysResource;
import com.chenjun.core.vo.sys.TreeVo;

public interface SysResourceService {
	public SysResource get(String id);

	public int create(SysResource record);

	public int delete(String id);

	public int update(SysResource record);

	public int createOrUpdate(SysResource record);

	public int doCountByCondition(DataGridModel param);

	public List<SysResource> doListByCondition(DataGridModel param);

	public Pagination doPagination(DataGridModel param);

	public List<TreeVo> findAllResourcesForTree(DataGridModel param);

	/**
	 * 
	 * 根据resource的id获取资源名称
	 * 
	 * @param id
	 * @return String
	 */
	public String getResourceNameByUrl(String url);

	public List<TreeVo> getSliderResult(Object pflag, String prefix, List<TreeVo> src);
}